from flask import Blueprint
from app.api.v2 import (
    demo,
    users,
    jobs,
    files,
    cloud,
    captcha,
    active,
    vulndb,
    notify,
    index,
    mail,
    alerts,
    tasks,
    packages,
    constant,
    report_download,
    news,
    inspection,
    push_report,
    base_page
)
from app.api.v2 import kb
from app.api.v2 import repodatas
from app.api.v2 import asset
from app.api.v2 import audit
from app.api.v2 import result
from app.api.v2 import api_token
from app.api.v2 import site_portrait


def create_blueprint_v2():
    bp_v2 = Blueprint('v2', __name__)
    demo.api.register(bp_v2)
    users.api.register(bp_v2)
    jobs.api.register(bp_v2)
    files.api.register(bp_v2)
    cloud.api.register(bp_v2)
    captcha.api.register(bp_v2)
    active.api.register(bp_v2)
    vulndb.api.register(bp_v2)
    notify.api.register(bp_v2)
    index.api.register(bp_v2)
    mail.api.register(bp_v2)
    alerts.api.register(bp_v2)
    tasks.api.register(bp_v2)
    packages.api.register(bp_v2)
    constant.api.register(bp_v2)
    kb.api.register(bp_v2)
    repodatas.api.register(bp_v2)
    asset.api.register(bp_v2)
    audit.api.register(bp_v2)
    report_download.api.register(bp_v2)
    result.api.register(bp_v2)
    report_download.api.register(bp_v2)
    news.api.register(bp_v2)
    api_token.api.register(bp_v2)
    inspection.api.register(bp_v2)
    site_portrait.api.register(bp_v2)
    push_report.api.register(bp_v2)
    base_page.api.register(bp_v2)
    return bp_v2
